import { Router } from "express";

const router = Router();

/** 返回id的100倍 */
router.use("/api/test/:id", function (req, res) {
  const {
    params: { id },
  } = req;
  res.json({ id: +id * 100 });
});

export default router;
